Merge pull request #1 from adam-vessey/7.x

Add extendable pattern handling.
Adding build.xml and Doxyfile
Build and doxyfile fixes
sed fix
Merge pull request #2 from daniel-dgi/7.x

Adding build.xml and Doxyfile
Be a little safer with objects in the queue.

Previously, the state written would prevent the working of later batch attempts.
We should put together some form of reporting about the batch queue...