[#580] Fix resource edit errors losing info
[#698] Makes group listing on homepage consistant height and length and such

Simply adds max-height to content to ensure list items are all of the same
height, also adds truncation to the title, decreases the truncation length of
the group description to make sure it's always on one line and adds a
min-height to the box to ensure that it's always the same height (even if there
is only 1 result)
[#864] Makes media-list items and media-grid much better looking and more functional

Includes:
- `.media-grid` now stacks nicely on top of each other and each item is it's
own box
- Also `.media-item`s now have a single thing to click on which makes it alot
easier to get to the related item
- Updates to media.less to decrease the amount of noise within the CSS
- Snippets for group_item, organization_item and related_item have been
simplified and a few blocks have been added to them for extendability
- Small fixes to related items index and sub pages
[#864] Fix for removed class
[#864] Few small tweaks to the templates
[#873] Show upload option if filestore enabled

* Add a check_filestore helper that checks the config if filestore is
  enabled.
* Check if filestore is enabled and user is logged in before showing
  upload button.
[#414] Prevent callback parameter breaking action api and search
[#873] Use a g.ofs_impl to check filestore status

* Remove the helper function check_datastore
* Create a global varibale called ofs_impl that stores
  the value of the config option
Merge pull request #414 from okfn/414-api-callback-fixes

JSONP API problems
[#454] Add polib to dev-requirements.txt
Merge branch '580-resource-edit-error'
Merge branch 'master' of github.com:okfn/ckan
Merge pull request #991 from okfn/454-polib-dev-req

[#454] Add polib to dev-requirements.txt
Merge branch '698-groups-height'
Recompile css
Merge branch '873-upload-button-check'
[#982] Add new index to package_extra_revision to aid performance
[#864] Adds better state for JS disabled on media listings
[#864] Add clearfix for related lists
Merged master