add support for documentation building and testing on travis. fix #238

as requested in #238