More cleanup and added junits to kundera-core. Issue #308