Upgrading dependencies

Also renaming Promise to BPromise.