TMFCoreCli.java: adapt to API v3.0.0.0

While there, refactor the code to use a functional loop.
tmfcore_cli/pom.xml: We want tmfcore == 3.0.0.0
Update tmfcore subrepo
Bump version to 3.0.0.0
Merge pull request #3 from bassosimone/feature/api-v3.0.0.0

Update to TMFCore API v3.0.0.0