Make helpers API not dependant on Rails. (Fixes #109)