Added bretts code for command line test execution and fixed some mass photo upload