Merge changes from topic "inputdispatcher-split-file"

* changes:
  Divide InputDispatcher into several files.
  Move InputDispatcher code into a folder.