Initial draft.  It works pretty well, but I want to cleanup the code a bit.  Still need to figure out the right way to pass in user/pass.