Switch to use promises where possible

I fixed this in: https://github.com/tangrams/tangram/commit/ae6b18865e5249f5298287251c64e2ca968aefb3