Change spec runner to mocha and assert to chai
Improve data-uri class exception handling