Add --attach option to time leap. Useful for testing. Timeleap will pop
first task of the queue and perform it (instead of marking it flushable).
This will make the test more deterministic and will eliminate the need
for sleeps.
if timeleap attached, ignore previous flushes
Merge pull request #101 from yschaeff/reg_test

Reg test