Moving login code to si package

Making it easier for a writing a custom auth service without interfering with the boilerplate code.