factored out parameter checking code in Activity.used()
moved epoch time functions to utils
additional tests for command line client