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.
Minor format fix.