Allow images to be saved and loaded by id and repository
Merge pull request #2793 from crosbymichael/offline-ids

Allow images to be saved and loaded by id and repository
Make docker build return exit code of build step

If a command during build fails, `docker build` now returns with
the exit code of that command.

This makes it necessary to change the build api endpoint to
return a json object stream.