Add config lib , update opensub plugin

Add config lib (use for test)
Update opensub with user agent and use config file