Move stuff into markup, use local copies of jquery&bootstrap.
Refactor some more stuff.