Fix app_actions method

For methods that only have optional parameters such as an app's `UPDATE` method the app_action method would simply send a body containing `None`.

Refactored the app_action logic to be easier to follow by moving the functionality to pull the input parameters into the request.