Feature/nodeunit

Implementing unit tests using nodeunit. Minor change to corridor.js to make it require'able.