Model relations changes

1. Each Model now inherits from Model Class instead of CActiveRecord
2. relations function in each Model now returns the logically related
tables with its own relations
3. new function "relateLogicalTables" in helpers Component