Work on alarmd and alarmd_client

I've mostly finished the core alarmd stuff, but I still need to work on
the client. Also I broke the heap functions into a seperate file but I
forgot to add it to the repository, so I can't try and compile stuff yet.