Create a custom router mapper so we have more control over the routes

Due to reasons explained in rails/rails#12367
Provide add_routes and append_routes methods

add_routes for when you don't care where they go (as long as they're there) and append_routes for when they must absolutely go at the end of the routes
verify if a user can fire a following event on order or not

Fixes #3818
Add class name to Variant#option_values association

This is so something like this would work:

variant.option_values << ov
Reload rules select2 box after picking a PromotionRule

So that the chosen rule no longer is displayed on the select2 box, users
can associate each rule only once with the promotion

Fixes #3572
Fixes #3816
Don't convert list of stock items to an array if all we need to do is sum
Fix redirect loop with redirect_https_to_http

force_non_ssl_redirect was testing if the actions was included in
ssl_{required,allowed}_actions, but didn't consider the case that it was
empty (which should mean all actions). This caused an infinite redirect
loop on admin and checkout pages with the option enabled.

This fixes the issue and simplifies the code by combining the lists of
allowed and required ssl actions. Also added some specs.

Fixes #3813
changed to use display_price whenever possible to allow extension and to simplify code

Fixes #3822
Must set calculable before saving new calculator in MigrateOldShippingCalculators migration, otherwise MySQL screams
Use Spree.url() to add tokens to API calls to stock_locations

On 2.0, stock_locations AJAX class are getting a 401 on http://localhost:3000/admin/stock_transfers/new since securing the stock locations API end points.

Fixes #3828
Set stock_item count_on_hand and use that in variant#in_stock? test
remove unnecessary routes block in c_h/ssl_spec

rails 4 doesn't rely on routes for it's force_ssl