popup base class

moved dialog to ui
hori and verti sections now more random
added showMinedout switch
Refactored the whole thing to use Popup and RoomEvent as baseclasses, for having a more reusability, still a little buggy
combined some namespaces