wrap up the text hashing API

This pull request wraps up and exposes the text hashing API.  It doesn't have a nice wrapper like the image hashing stuff, but it is usable.