add enable/disable option for photostreams
move utility code into main class (for simplicity and to help in the final rewrite to come for getting the code more or less presentable)