bug fixes for rest controller
http://jspringers.myjetbrains.com/youtrack/issue/ID-152
login and index for webapp
Merge pull request #12 from jspringers/snapshot

Snapshot