Merge pull request #49 from mediaburst/master

Support for MySQL
Reduce a lot of code duplication after MySQL merge
More reliable way to get the assembly folder

This method works in web apps in IIS express and IIS too.
Tweaked the LogError method.