Refactoring the logger and reducing the save state memory usage.
Fixing a bug causing template blocks to be single line only
Adding a json fetching utility
Fixing some warnings