Handle async errors better in tests
Fix test script paths
Add gulp task for test bundle with source maps
Fix debug string format
Tweak browser targets