cleanup Device Registration Endpoint and making 'addInstallation' async; adding test for addInstallation