Refactor mikiwindow.py, collect actions into dict, no attribute defined
outside __init__.