Addind login connection.
Added ngResource.
Added cookies support.
Added writing to cookie.
Added service for registering.