Added context awareness. If you accept html (Browser) hydra returns html, otherwise return json.