Reorder sections in classes

Order: public, public slots, signals, protected, private slots, private
(typedefs, methods, members).
Refactor action handling