More WIP

Added lots of code to help auth
Added identity model