Fix up javascript errors preventing some of the functions from working
Merge pull request #42 from timschofield/master

Fixes to javascript causing some functions not to run
Merge branch 'develop' of https://github.com/KwaMoja/KwaMoja into dbupgrade
Change function AddConstraint() to handle keys with more than one field