do most of the remaining work on ajax

still todo: preprocessor directives
will probably have to be sliced out
complete libraries-over-ajax support
Merge mainline changes into the ajax code; tiny fixes

Conflicts:
	index.html
	js/main.js
finish up the ajax components
fix all of the final ajax bugs