Added q library so we can do promises
First restructuring based on promises
Working version of the importer with promises!