CORE-5832 Removed null values from tool details.

Fixes for /apps/:id/details and add, copy, and apps ui endpoints.
CORE-5832 Fix for tools in add/update apps endpoints.

Persisting the tool ID was missed in the initial POST /apps endpoint (commit cf83e4d88668bfc5ac2634293d36d644003b4678).
Other fix is for changes made in commit 5783bbf4d288f23e2bc0e38e464586b3e32d3466.
CORE-5832 Minor refactor in metadactyl.zoidberg.app-edit
CORE-5832 Fix for add apps endpoint.

Updated group and parameter fetch calls in metadactyl.zoidberg.app-edit to include their parent IDs in the lookup.
This will prevent new apps from "stealing" groups and parameters from other apps, if the new app request JSON contains group and parameter IDs that already belong to another app.