Add jake for basic build automation
Set up JSHint for linting support.
Update build script.

Jake will now lint code. Added integrate task as well.
Integration script more bulletproof.

Will now check that it can switch to integrate before trying to
integrate...