Imported the MAR extension

We'll still need to modify our models so that they inherit from
MortimerActiveRecord instead of CActiveRecord