Make api use epoch seconds

Addresses but does not resolve #343:

* This makes the code deal only in epoch seconds, but does not change how datetimes are stored in the database.

* This assumes the user's local time zone is the time zone of their client browser, rather than letting them set it as a preference.

http://jenkins.buttonweavers.com:8080/job/buttonmen-AdmiralJota/16/