don't need flatpage middleware since we're handling flatpages through
^flatpages/ url
added custom flat pages model which can optionally render markdown
minor html refactoring and fixes