wrote tests; rewrote module entry points to make code more readable; don't send packet updates unless there is a change
force gulp tasks to exit as mocha doesn't for some reason