Add support for alerts

I noticed that /alerts was not in the library. This adds it. I tried to follow the same conventions as were already there.