Async Device Registration

Replacement for #372 

* cleanup Device Registration Endpoint
* making 'addInstallation' async;
* adding test for addInstallation

Needs to be merged to `1.0.x` and `master` branch