Moved all dialogs into separate classes and simplified them by moving layout definitions into XML resources.
Renamed CounterActivity.
Fixes #10.