finalizes full cache refactor

Changed avalax api a bit to work with native node callback style.
Refactored avalx a bit. Implemented a secondary cache to cache api calls
which gets refreshed on avalx cache refreshed event.