Application form ajax

Makes a background ajax submit on a timer after changes so it submits the form, saving all the data transparently to the user. Also includes a couple minor bug fixes.