Added dispatcher & shared preferences classes, refined app flow.