Many fixes

Add redis model
Add templte fragments
Add link output
Add prety kibit formating