Initial auth refactor
pack auth api
Merge pull request #686 from spumko/feature/auth

Pack auth api