Polished "flash" error display

added 404 and 500 error pages.
added flash.html to handle error message display.