Move from Australis branch the changes that are not strictly related to new UI stuff

- Updated comments
- Improved api-utils
- Added `isLocalURL` to url module
- Added `union` method in array module
- Added tests