Refactor Shipments API & JS.

In reference to https://github.com/spree/spree/issues/4523

Updated the guides here https://github.com/spree/spree-guides/pull/222 and want to get some feedback now.