Add failing case for MySQL query gen with bool. (Issue #607)
MySQL: Outgoing booleans are turned into ints

In the MySQL dialect, values used to generate insert, bulk insert, and update queries are now checked for boolean-ness and will be turned into an int.

There was already duplicated logic applied to outgoing values to check if the value was a Date or not. I factored out value processing to a single function and added a check for typeof boolean.

The new function also escapes the return value since that was also being done everywhere.

Fixes #607
Minor low-hanging changes to improve jshint performance
Failing tests for MySQL where clause value processing
Process values going into WHERE clauses in MySQL
Migration environment set from command line args

Still defaults to 'development' if NODE_ENV isn't set so backwards compatibility is ensured.
(Subjectively) improve copy in binary

Also replaced one thrown error with a console.log. The rest of the errors were not thrown, and since this file is run from the shell, it will be an edge case that it will ever be caught. It looks messy when it happens. So it now returns an exit code of 1 to indicate things went sideways.
Include a done() in the migration skeleton

Because I always forget to add one to 'down' and then my migrations don't undo.

Also upgraded a ==.
Throw nicer errors when we can't read config.json

And quit with a code after outputting it.
Make migrations more verbose and time migrations
DataTypes improved
Merge branch 'master' of github.com:sequelize/sequelize
Merge branch 'master' of git://github.com/Costent/sequelize into Costent-master
added tests for new data types
Merge branch 'Costent-master'
convenient data types
Merge branch 'master' of github.com:sequelize/sequelize
Merge branch 'make_binary_verbose' of git://github.com/terraflubb/sequelize into terraflubb-make_binary_verbose
fixed logging
more verbose binary