Merge pull request #6 from nubs/master

Add first RPC interface
Merge pull request #7 from nubs/master

Fix minor issues and detect failure messages from RPC (incl. auth)