added the authentication to the rest service (still needs standalone login and unauthorized)
added rest to example app