Added flask.g functions
added test and function to pass test
added all entries function and tests
added templates and more tests
more tests passed