Fixed minor escaping fail in test.
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
Merge pull request #2 from JonathanO/master

Minor fiddling to improve tests, and composer usage.