Add get_flatpages to global context. Move it to separate module