Adding new test and Travis-Ci infrastructure

I'm applying for GSoC'14 and here is my PR for it. I'm interested is getting a CIS up for this repo. 

In this PR, is my nodeJS infrastructure to run tests via jasmine-node. The test doesn't run since I'm running it on the command line, and not a browser. So some variables won't exist, causing an error on some of the tests.

My VIM setup also removes extra whitespace at the end of line which explains some of the changes made.