add automatic logout to HttpMiddleware & tests
wasAutomaticLogin -> isRESTAuth
Merge pull request #32 from owncloud/api-logout

add automatic logout to HttpMiddleware & tests