Fixed bug with complex table/model/controller names.

Also fixed: stdout names for generated migrations: dates added.
Controller test generator small variable naming fix to match
ControllerGenerator code style.