Adding phpunit tests.

Replacing Backbone.php's home grown unit testing with phpunit tests.