Add authentication to Rest API and test my account view

While testing your other PR and looking at coverage, found there were no tests for "my account".
As I wrote the tests, I found authentication was missing, so I added some default rest API authentication.