alerting fixes

* status vs status_str vs code, now more consistent
* insert integer unix timestamp in db
alert emails: less is more
make alert emails pretty and provide link to manage alert
provide edit link on alert view page