Added testing, linting, and file watching tasks to grunt
Fixed issue with encoding / decoding zero.

encdec.js, and unit tests, fixed to handle encoding / decoding of zero.

Where before zero was returned for any errors e.g. encoding the empty string, the library now returns -1 to indicate an error.