Create model to manage user-application many-to-many join

Create Membership model to map users to OAuth Applications. Also include a 'member_type' field to differentiate Owners and Developers
Set up destroy hooks for Doorkeeper::Application

Trigger a destroy on the application if the last owner is being destroyed. Also want to destroy memberships when either the user or the application is destroyed, which makes things tricky.