[FLINK-19330][core] Move intialization logic to open() instead initializeState()

This commit moves the initialization logic of the operator to open()
instead of initalizeState(). The reason is that starting from Flink 1.10,
at intializeState the runtimeContext is not yet properly initialized.

This closes #159.
1 file changed