Moved around some functionality

In order to not duplicate code for #4 needed to generalize overrides.
Also, since the javascript is fully automated apart from name and url
which are vital and in the Thing typespace, all overrides will be done
in PHP.