KNOX-314 refactor dispatch and add hive specific one
Merge remote branch 'origin/apache-ref/v0.4.0' into baikal-GA-0.4.0