Login task improvements

- update the DAO pages to use the generated classes
- put the JSON response in HttpResponse class instead for Authenticate
controller
- set/unset PM in session