Have you considered releasing these as a library? There're some good reference implementations in here.