Independent Scotland may not get automatic UN spot

British government releases legal advice on 2014 referendum.