Added promise functionality to bimserverapi