[Completes #57056176] Third-party application can select which elements of the profile to return in API request

 - Modify app management to distinguish between top-level scopes and sub-scopes.

Conflicts:
	db/schema.rb
	spec/requests/authentications_spec.rb
	spec/support/request_helpers.rb
resolving merge conflicts
Javascript solution to 'Third-party application can select which elements of the profile to return in API request'
Correcting typo in migration
Changing minor elements of the parent child scope checkbox js code.
[Completes #57056176] Third-party application can select which elements of the profile to return in API request
Ensure that checking on all subscopes affect their parent checkbox in apps/new
Moved scope checkbox js to assets. Improved oauth scopes code
In /edit javascript now checks parent if any children are checked.
Removing parent scopes from being saved on app save. Added tests.
Uncommenting a needed test. Had to change app name during app create in before do block from 'app1' which was taken to something else.