[#715] Checks if resource can be previewed and that changes the UX

Adds new helper function to check if a resource can be previewed and adds it to
the templates.
[#715] Adds more logic to the  helper
[#715] Tweaks to  method
Merge branch 'master' into 715-resource-preview-ux-changes
Merge branch 'master' into 715-resource-preview-ux-changes
[#715] Remove helper and do work in controller and minor tweaks
[#715] Fix can_be_previewed for embeds etc
[#715] Further cleanups
Merge pull request #715 from okfn/715-resource-preview-ux-changes

Change UX behaviour when displaying an external resource which can't be previewed
[#1056] Fix for 500 error on group create page

Also fixes for:
* Group/Org edit template: added missing context in sidebar
* Group/Org new template: added missing helper text
* Small template refactors: moving group context info into snippet and also
group/org helpers into snippets
Merge branch '1056-group-template-fixes'
Merge branch 'master' of github.com:okfn/ckan into resource_update-use-package_update