Added a number of validatio fixes including:
* Jquery based regex masks
* most fields are now validated correctly (still needs full checking)
* Fixes to various templates.
* Restricted dataset locations to points only
* Fixes to ca_scripts to correctly identify when the model has changed + fixes to boolean and date types.
* Fixes to required/non-required fields
* Made all datasource fields nullable so that validation works correctly, this will need to be re-addressed in some manner.