Refactor local-ip.js to export 1 thing.

Also, rename ip.js to local-ip.js.
Refactor shallow-copy.js to export 1 thing.

Also, rename util.js to shallow-copy.js.