Unit test fix for input socket deletion

Renamed a parameter on the socket and missed this unit test.
Headless unit test running with grunt and jasmine

Added grunt, jasmine and fixed a few unit tests. Also updated the
.gitignore so that I wasn't committing node_modules (eg grunt) every
time.