Switch to return codes

- Fix Sharerepo
- Fix Zalaa
- Fortify jsunpack
- Code cleanup
- Cleanup imports and declarations