Finish up parameter parsing and validation.

Login to a docker index now works, ready for
implementation of the actual push logic.