Java methods to set the platform

- by default set the platform to the Cascading platform
move interfaces into logic.platform