Parameterize the lockfile variable in the init script

The main reason for this is that "facter" isn't in the $PATH for root if you use
Puppet Enterprise, since PE is installed in /opt/puppet/ by default. Hence, the
init script will give an error if you run it with PE installed.
Add ability to automatically install the MySQL Connector/J driver
Merge pull request #39 from theasci/parameterize-lock-file

Parameterize the lockfile variable in the init script
Merge pull request #40 from theasci/autoinstall-mysql-connector

Autoinstall MySql Connector/J Driver
Remove "sessionVariables=storage_engine=InnoDB" from JDBC URL because it's broken

See https://confluence.atlassian.com/display/JIRAKB/%27NullPointerException+at+com.mysql.jdbc.ConnectionImpl.getServerCharacterEncoding%27+Error+When+Using+MySQL+Driver+v5.1.16