added abstract model class, and view class

Also edited config.inc file. Constants weren't being properly defined,
they are now.