Added flash to enviro and config, fleshed out helper methods, added flash partial to layout

why: prevent unauthorized access to get and post requests