Added index to department valid_key; Fixed event controller for POSTing;  Got Event syncing working; Not sure if scans are working correctly yet;