There is an implementation of the logout function here: https://github.com/aerogear/mobile-developer-console/pull/94/files which I believe we can use.