add encoding for failsafe plugin
connectors tuning

add tests, unify package name, some enums,
add javadocs