Version is updated only when policy is updated/insert

When an event is added, it is added with current policy version. This
way there is no dependency from event to policy table
Calling correct SetPartitioner instead of incorrect SetPartition
tap/api.c tests added - need more