Borrowed a lot of the logic that the MySqlScript class utilized to parse Sql from files. This fixes issues with setting different delimiters, and sending User Parameters in Sprocs.