Clean up use of promises to do more sensible things with exceptions.
Compiler fixes
Add bulk subscribe support.