Issue #3: Some diashow refactoring

Initial refactoring of diashow controller:
 + simplification of code - removed some code duplications.
 + introduced some private methods.
 + fixed some program logic.

Addes some comments to PostController for later/further refactoring -
where to export the considered piece of code.