Updated App registration

Created a new app uses a JSON string, instead of multiple strings
Updated example for new JSON registration