Added code to allow fetching of recent posts and user sign up via JSON