Merge pull request #2 from otila/master

prefetch optimization and misc cleanups, libjansson 2.6 update from otila