Added ActionHandler class, and a base template for JSON returns.