Fix Login and Register

Create session controller and .js
Create WPM model
Change Book model to reflect relation to user