Test lawnchair dao

Test pgp promise api
Fix error handling in lawnchair dao
Fix rest dao and invitation dao
Test device storage dao
Test public key dao