Fixed missing json.loads
Added error page templates.
Fixed a stash-apply