more c-ios stuff

-tableview now displays sorted sets yay
-merged all tableview logic into one class
-created appconstants class