Permission related events for UI actions

To allow front-end developers to show UI elements when permission to local media is requested (or acquired / failed) I introduced three new events: localMediaRequested, localMediaAcquired and localMediaFailed.