- change set_time_limit to 1000, infinite limit kills.

- dump the debug output to MODX's error log if it's an ajax call
- [#63] add queryHook's version to implement different regex
- reformat the code
- [#61] fallback on failed loading of the zend lucene library
- [#60] fix sorting which doesn't work in queryHook