Added package.json file and test script which can be run with npm test
Refactored QueueFuncs into the Queue class and fixed tests appropriately.