various bugfixes
Merge branch 'master' of git://github.com/romaninsh/opauth