Commit, nearly finished.
fixed up a bunch of code, its now accurate to about 300ms (max variance) and doesnt drift (woohoo).
Need to make the webinterface use /dev/shm instead of the SD Card for serving the static images.
Also should implement a checkbutton to use /dev/shm for the image spool and upload queue (to spare the SD card), however this will onjly be able to be safely run on the new pis as the old ones dont have enough ram to do so.
Added dual upload scripts for the picam and the DSLR, and checkboxes in the webinterface for static image uploading alongside disabling of ftp upload.