Tmpl cleaning and moving around of some things in the tmpls

*Add a coffeescript for generating a delete flag modal on the fly
    so each flag doesn't have a modal like it does right now, in the
    lists of flags (gets bulky and lots of extra transfered HTML)
    Tested is jsfiddle so hopefully it works after I update the tmpls