Fixed some bugs which lead to a bad performance of the NIF based test web service.
Merge branch 'master' of https://github.com/AKSW/gerbil