Adding SSL support at descriptor level

shifted the code from dataprovider.js to sessionfactory.js to handle per session based support..