Harden mysqlbackup.sh script

 * mysql::backup backuprotate parameter sets the number of backups to keep,
   default is 30.

 * Use bash in mysqlbackup.sh to get exit status of mysqldump when piped to
   bzip2. Unfortunately there is no easy portable way to do that.

 * Only delete old backups when current backup finished successfully.

 * Try hard not to delete files that we didn't create (i.e. README or other
   backups).
Fixed tests for mysqlbackup.sh
backup: configurable cleanup sequence

$delete_before_dump controls whether old backups to be removed before
creating new one.
Tweak spec file to account for days of rotation.
Add rspec-system / serverspec tests
Merge pull request #1 from apenney/omalashenko

Tweak spec file to account for days of rotation.
Use $root_home for .my.cnf
support max_user_connections in database_user
add spec for max_user_connections on database_user
Merge pull request #214 from paramite/roothome

Use $root_home for .my.cnf
Merge pull request #170 from omalashenko/master

Harden mysqlbackup.sh script
Merge pull request #218 from hunner/rspec_system_serverspec

Add rspec-system / serverspec tests
allow setting max_user_connections during user creation
fix database_user tests after changing creation method
Merge pull request #215 from mbakke/max_connections

Support max_user_connections in database_user
Various fixes suggested by RubyMine. (style for the most part).
Fixes suggested by RubyMine.  (style for the most part.)
Fix a geninue potential issue, a non-quoted string.
Simplify a few things.
Merge pull request #219 from apenney/fixes

Fixes suggested by RubyMine (just playing around with it)