Code used to create the tables. 

Not entirely sure about the foreign keys; probably need to be dropped and re-added.
bring code in line with styleguide
Remove unused code
fix casing
Add image saving
rm errant var_dump();
improve sql
add numeric check to uploading timestamp; bump api

* Bumped API version
* Added `is_numeric()` check to the timestamp property of locations in
  upload.php
Add image processing

* Change `processImage()` return behaviour
* Add initial file put behaviour

Untested.