moved more time related functions to times.go
made response satisfy the error interface, refactored server.go easier testing later on