Fixed dynamic api loading. Added beginning of admin interface.
Other misc stuff too.