Re-factoring: all user-interface stuff moved to "ui" folder.