Make alert functions pass status through and add test suite.
Add travis file.