Fix bug #1008 with modal visualization and small refactoring.
applied minor fixes to commit 56e1f4ed8a8486ad951a6af087475e69f03f45b7
Merge pull request #134 from globaleaks/fix/1008

Fix bug #1008 with modal visualization and small refactoring.
implemented feature https://github.com/globaleaks/GlobaLeaks/issues/1004
Merge pull request #136 from globaleaks/feature/1004

implemented feature https://github.com/globaleaks/GlobaLeaks/issues/1004
Merge remote-tracking branch 'client/devel' into devel