compilable and testable version

This is a pull request of the project in a runable, compilable and testable state.

I know you dislike maven, but people continuously ask for it, the project isn't easy to compile otherwise.
All unit test have been ported to mockito instead of jmock to have a mock framework that test the functionality
instead of how the method achieve it and then hopefully avoid non-updated test in future.

Some other warning have been fixed as well