Added scripts for managing mnist cluster. Converted mnist sample to use optargs.