Improve the ESP SDK - making easy to customize

Changed the returned type to Object for getAccounts call as the framework expects an array of id and name in case of success and expects a map with error as key and description as value in case of error.