Use transform to generate HTML ResourceMenu

Mostly to provide relative URI references
Move PUT of JSON into HTTP request handling
Fix populateForms(), move handling of "new" elements to top