Add VIM folding to data_generator

This makes it look better in VIM.
Fix spelling errors on promises.helper.js

:blush: opps
Fix broken specs for ConfirmationController
Add specs for DataGenerator

I had to export the DataObject so the tests could work with it. This is
better practise anyways Expose the functions you want to have for unit
testing. But closeure the function which are used for implementation
details (helper functions).