Option to render as JSON

Added a simple method of rendering the view variables as json. 

I think this is fine for smaller websites, but I'm not so sure about larger ones. Overall though adding .json to the URI is a quick hack and works. Let me know what you think.