Added a .gitignore for the test directory.
Adapted ModelDepot to use the new Promise class.