actually add fragments.js with some unit tests
use spy obj for checking triggered events
Merge pull request #1 from fs/be-useful

Actually add fragments.js