Refactoring with security.php to change testInputs to sanitizeInputs.
Fixed problems with DatabasePopulateTestScript.php
createEvent.php, createAvailability.php: added sanitization of inputs and checks that inputs are set.
Added on click for events and availabilities.
createAvailability.php, createEvent.php: added more checks for inputs. createEventPage.php: fixed comments.