Only render edit action if rendering HTML

Resolves #97
Merge pull request #98 from theodi/bugfix-97-json-view

Only render edit action if rendering HTML