Unified frontend alerts

Simpler alerting. Mimics the backend functions

Replaces the Alert object with functions to post an alert to the #messages div, or a different jquery container if provided. 

Also contains css changes unrelated to alerts.