Improve javascripts on edit page.
Fix null reference in thumbnail list.
Input validation of bounding box coordinates. Fixes #GEON-46