move code from src/ to src/java
implement robolectric for (unit) tests and convert ToolsTest; issue #144