Added the log out functionality

Basically just cleared the PersistentCookieStore on the ApiInterface, and then redirected the user to the login page.