added flat creation to web interface

i'm not sure if it is working correctly yet though
added methods for zero and dark subtraction on images
fixed bugs, now works seamlessly