Minor fiddling to improve tests, and composer usage.

Made Apc driven test check that APC's available and usable.
Switched exception tests to use expectedException and expectedExceptionMessage.
Added missing fail() cases for some exception checks that can't use the above.
Use the composer autoloader
Update the license in composer.json