Do not clear URL hash when no external mount params given

Whenever external share parameters were passed through the URL hash, the
URL hash will now be cleared.

In other cases, the hash needs to be left alone because it is used as
workaround for the lack of history API in IE8 / IE9

Removed getParamterByName() and use OC.Util.History.parseUrlQuery() that
does the same, including replacing the "+" with spaces.
Fix parsing URL hash when no "?" was specified
Merge pull request #9202 from owncloud/urlhashfix

Do not clear URL hash when no external mount params given