XWIKI-9348: Introduce input instance component for WikiStream
* a bit of refactoring