Extend the POST to PUT/DELETE wrapper hack

Allow HTML forms to do PUT/DELETE methods and to redirect to another
result page. This lets us reuse the machine REST API with HTML forms.
Otherwise we have to duplicate them (we've got too much of this
already and it clutters the codebase).
Little extension to the templating

Helper functions for constructing hetrogeneous dicts
First iteration of a new admin frontend UI