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
Merge pull request #1141 from ZER0/from-australis

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