[CHORE] Fix requre statements
[FEATURE] Refactor generate_wallet to api.
[CHORE] Remove base58.js for being unused.
[FEATURE] Refactor start_gateway to api.
[CHORE] Update require paths.