GPII-716: PCP's method for interaction with FM via WebSockets should be more declarative

Link to JIRA: http://issues.gpii.net/browse/GPII-716

This pull request is strictly connected with Websockets communication from PCP to FM (http://issues.gpii.net/browse/GPII-539) and is not related to the pilots.
@jobara the option socketConnected https://github.com/radmanovi4/prefsEditors/blob/gpii-716/src/pcp/js/socket.js#L17 is declared to keep the state (connected/disconnected) of the socket during the lifetime of the component. I want if socketConnected is false, to fire the onConnectRequest event https://github.com/radmanovi4/prefsEditors/blob/gpii-716/src/pcp/js/socket.js#L23-L30, which takes care of connecting, binding error handlers and emitting message. If socketConnected is true, I only want to fire onEmitRequest event https://github.com/radmanovi4/prefsEditors/blob/gpii-716/src/pcp/js/socket.js#L31-L33, since the up-mentioned (connecting & error handling) has already been done.

Any way I can inject the socketConnected value into the invoker "applySettings"? I guess something like the condition expander for renderer components http://wiki.fluidproject.org/display/docs/Renderer+Component+Tree+Expanders#RendererComponentTreeExpanders-ConditionExpander ?