Remove hash when closing a method container again. Added small hash helper functions.
Merge pull request #386 from marco-jantke/window-location-hash-fix

Remove hash when closing a method container again. Added small hash help...