added initial code for a rewritten alarmd, I'm writing the spec first