Added ag-form to RPC service update form

- Added ag-form awareness to RPC service updates
- Added missing ag-form tag to REST service update form
- Fixed handling of empty values in api.js to test for both '' and undefined
  (incorporated in each of REST and RPC)