Fix translate does not wait

This fixes #663. It now adds the promise to the langPromises object. This makes the $translate service wait until the async resources are reloaded before trying to translate.