Incorporated learning from dokuwiki-authbrave
    - API endpoint should be configurable
    - Catch API exceptions
    - ...
Pubkey needs to be pasted from core
API should have debug disabled by default so people checking it out for production use can use it right away
Merge pull request #3 from kiu/master

Incorporated learning from dokuwiki-authbrave