As for the references, I imagine most of what's interesting should be linked in there.
You could look at ActivityPy for a sort of reference implementation.