234 application js

Split up application.js into child files based on their functionality and also removed some code that seemed unnecessary and enabled some other code that was disabled before.

Most notably:

* Another iteration of truncate(); was present in the document.ready block. The comment above said that named js functions were executed after all content was loaded because of a webkit bug,and so that was why the code had to be reduplicated. Replaced said code with a single call to truncate(); and tested in Midori, Firefox, and Opera. Seems to work fine
* Re enabled tooltipping of truncated equipment model names in the catalog. Comments said it drastically impacted clientside performance but I couldn't notice anything 'drastic'. Somebody else please confirm/deny.

This pr has 749 inside it, so let's not work with it until 749 has been merged.