Well it's already possible to rotate around an arbitrary axis with the engine functions.

EDIT: just to clarify: if you want to rotate about an entities' local axes, use ang_add/ang_rotate