fallback to hash version for file:// protocol

- HTML5 history is not supported on file:// urls
- allows Transit to be used in Cordova/PhoneGap apps

I tried to run the tests you have set up but there's no `server` file in the repo. Let me know how I can run the tests and I'll try to add a few for this change.