Ported to latest scala & libraries. Added scoverage support.

Also fixed all compiler warnings.