Fix for many-to-many returning a single object not an array of objects
Added new constraints and fixed instantiation of validator in the controllers
Updated Log class to add the CLI handler whenever using the cli SAPI