Move private variables and functions to alert.c and make static.

The header file only needs to contain the functions that the apps will use to interact with the library, everything else can be hidden in the alert.c file.

I also created function prototypes for all of the private functions in alert.c.