Merge pull request #16 from VSEphpbb/master-updates

Fixes to work with DEBUG_CONTAINER
For some reason, self::$already_connected does not seem to be updated
correctly after the db is created.

Declaring it in the function is significantly faster.
Create a function to build a container
Merge branch 'master' into master-updates

Conflicts:
	tests/framework/extension_database_test_case.php