Massive commit

Fixed packages (all move to ru.matlog.*), added validation and
exceptions