Implement flask-cache and using simple cache; Some other small changes