Removed unit copy, introduced model factory, started to adjust jnibwapi
code.