Let's just throw a 502 not supported here instead of a not allowed
Added Doxyfile
Apparently dashes in email addresses is valid..
Let's add a signal handler so we close everything nicelyon SIGTERM and SIGSTOP
We can now actually fork to the background

And also added a few command line options, for now it's just --help
and --debug. --debug simply means it won't fork into the background.
Added command line option to specify listen port
Include limits.h
Replaced enum by a char and some #define's to save some memory

Yeah I'm this much of a memory saving whore sometimes...
Why was this still here?.. unused..
Attempt to fix the buffer overflow issue in the android_push function

It does shorten the data correctly now (keeping it under 4096 bytes
as stated by the gcm docs). However when the data is in fact made shorter
the gcm servers will throw an error saying it has a EOF in it. At least
this was the case in my tests..