Converted the Model to use $data as an array exclusisvely.

Added toArray() method to the Model that ouptputs the $data transformed
for native php. This is how the $data array is passed to the Mapper.

Mapper functions now expect $data to passed in as an array as well.