Add trees to Admin interface and fix editing models

The previous URL definitions didn't start with a '^', and so any URL from
the admin interface with an id in the URL was picked up as being an
instance URL.