Restructure javascript dependencies

Stop using django forms media classes because they are too opague.

Stop pulling underscore in on base.html. Pull it in on each individual
page and then bump it up to base later if necessary.
Misc cleanup
wip. refactor js.