added error throwage in image.js
added error throwage in image.js
Fixing jshint and coding style standards errors.
Adding unit tests to test new error handling for image.pull
Fixing some code styling errors.
Merge pull request #11 from kalabox/err-handling

Err handling