api: check for authorization in appIsAvailable handler

Closes #287.
api: check for authorization in cloneRepository handler

Closes #286