Optimize loading of JS & CSS.

Separate CSS & JS for dev portal vs admin interface so that only what's needed in each is loaded.

Also moved JS to end of body.