Maven support.
First functional version, using Threads