Add synchronous hooks
Move curfew functionality into curfew/

Addresses #16.