Implement devise

this resolves #13