AbstractWidget implemented. Fixes #502.
Waits for jobs when running java project. Fixes #847