BB10 implementation

Opening this for visibility. It needs to be squashed and .so files re-generated from the latest commit.
sp: excercise

(please consider wrapping lines to reasonable widths)