Server render templates

New features: Validation, better JSON data file, error handling.