add index on thing name for searching
add search rest call - tests still to be written
add search functionality - tests still to be written
test node app
write tests for the UI
Add a summary and a close button to the top of the results
Show a loading image while the search occurs. Also fixed the date slider which had got out of place, which necessitated changing the css of everything.
Limit search results to 500 for things and types
Make sure longitude is always -180 < x < 180, so it doesn't wrap around and give duplicate positions for the same position.
Don't update the map if the redraw event was triggered by the map updating the model.
Events were not being sorted - it was only working because they were being sent from the server in the correct order.
Because counts are of type big ints, and bigints may be bigger than JS ints, node-postgres handles them as strings. Opting-in to handling them as ints because it isn't really a problem here. This makes the event counts be handled in order properly.

See https://github.com/brianc/node-postgres/issues/378
Don't show the drop down until its ready to be shown.
Force an update on the map when the search box appears and disappears.
Remember the center position when resizing the screen
Force the map to resize when the filters are shown
Add a button to allow the search to be done via a mouse click
Plot a line between the known events of a person
Mock out db properly so tests pass
When calculating the midpoint, get the longitudinal midpoint closest to the points, not closest to 0 degres