Merge pull request #51 from MatthieuBarthel/master

Fix #45 - update addMapListenerOnce to fix memory leak
Update getMapPromise to resolve the promise if the map has already been added

It fix an issue when you use getMapPromise to look for a reused map
Remove trailing spaces