Refactor Flash Implementation to Use GlAlert

Because the majority of Javascript alerts in Gitlab use createFlash from app/assets/javascripts/flash.js, we should integrate GlAlert here instead of replacing it higher up. This will also address how to use the alert in HAML.