Added a method of Basic Auth for Backbone.sync

This assumes that the username and token variables are available in the scope somehow, but that seems to be beyond the scope of the examples?