added constants module and updated dashboardapi to support either localstorage or iwc