TDH provisions its own key in its permission database

That way it can replicate things to itself. This is useful both for testing
but also for production.
Merge pull request #46 from yaronyg/master

TDH provisions its own key in its permission database
Fix some minor bugs and get some tests using dynamic ports
Merge pull request #47 from yaronyg/master

Fix some minor bugs and get some tests using dynamic ports
Made key database key the same as httpkey key format

Also fixed a bug in addDocViaManager
Merge pull request #49 from yaronyg/master

Made key database key the same as httpkey key format
Fixing build
Merge branch 'umaster'
Changing key size to make QR codes work