Some refactoring and an attempt to add identity plugin to index.js
Some refactoring and an attempt to add identity plugin to index.js

byunghoon/DistimoSDK-PhoneGap-Plugin,byunghoon/DistimoSDK-PhoneGap-Plugin,byunghoon/DistimoSDK-PhoneGap-Plugin