Merge pull request #151 from maniac103/for-upstream

My improvements & fixes
Fix unbalanced super class call.
Properly use constants.
Replace restartLoader() by Loader.onContentChanged().

Just restarting the loader won't force a data refresh.
Switch to SherlockProgressFragment.

Fixes calling invalidateOptionsMenu() on API 10.
Suppress errors for using
SherlockFragmentActivity.invalidateOptionsMenu().
Store theme setting in a format controlled by us.

R.style.* can change over time (dependant on build settings, used
libraries etc.), so we should rather not use it as a theme setting
lookup key and blindly trust it on reading from persistent storage.
Fix unused imports.
Fix ClassCastException for invalid payloads.
Reset page iterator on loader reset.
Merge pull request #152 from maniac103/for-upstream

Follow-up fixes
Allow opening, closing and merging pull requests.
Fix unused import.
Correctly handle missing storage when downloading.
Fix !online handling.

Error view is set in the super class.
Merge pull request #154 from maniac103/for-upstream

Allow opening, closing and merging pull requests.
Merge pull request #155 from maniac103/for-upstream-fixes

Fixes for Bugsense reports
Don't rely on the repository being initialized for sharing.

The share menu item is accessible even while the repository is still
loading; so when accessing it before loading completed there will be a
NPE.
Hardcoding the path isn't a big problem anyway as we
- do this in a lot of places anyway (mainly in the activities where the
  actual objects are loaded in the fragments) and
- we need to rely on the exact path conventions for the browse filter
  anyway
Fix downloads download.

- Fix download URL to point to the actual file and not the JSON data
- Fix download media type - zipball downloads don't work with the
  application/octet-stream type
Remove useless check.

We can't return null from getFragment() anyway, as that will lead to a
NPE in FragmentStatePagerAdapter.