Add unit tests and entrypoint cli option

Add the commandline option -entrypoint to allow the
default entrypoint set by the image to be overwritten
by docker run.

Update the documentation for ENTRYPOINT and docker run options.