Fix table name when using crud in a plugin

In a plugin, table names has dot notation, resulting in _table() method return null
fix viewVar value when using crud in a plugin
Model aliases are already plural
Merge pull request #218 from stefanozoffoli/cake3

Cake3 fixes when using crud in another plugin