Add module 'core'

Need pure java module for better unit testing