Modularize pages.

Most pages broken into php includes.
fix script inclusion order

jQuery was being called too late. Moved other script calls down.