Change logout to POST, move logincheck to user, for a more RESTful API.