Separated login and register states.
Added angular-cookie library.
Added 'public' attribute to non-private states.