Converted architecture to Model-View-Controller style.

Signed-off-by: Mike Schoonover <mike@folsomvillage.com>