general updates; separated main lib/config for CI and standalone use

+ added API Encode method to handle specific special chars
+