Redo overall js framework

This branch is becoming a little too much of a monster so it's time to merge it. it's going to be one motherfucker of a merge though. Basically I'm working on about 6 things in this branch. 
1. Implementation of QUnit testing
2. Reworking of testing console
3. Generation of test data
4. overall refactoring of js structure
5. Adding images to posts 
6. general bugfixes and code refactoring

1 is in progress but no tests have been written
2 is also in progress but i haven't figured out how to manage the testing console since it's grown huge very quickly, mostly because of the incredible lack of any testing previously
3 is in progress, working for parts, not quite working for posts 
6 is and will always be in progress
4 is done, or at least this iteration of it is done. I've made a lot of things in the profile page more dynamic in an attempt to make it more extensible
5 is completely done. fixes #131. We çan't upload to the server, but if urls are provided images can be displayed. as soon as this is merged i'll open a new issue about being to able to upload directly to the server. 

so the point of this branch mainly is to get the images in posts stuff out and to get the new js structure out and into master.