Spree 1.3 compatibility

Make extension compatible with Spree 1.3. Included two fixes which already have pull requests.

This is my first contribution. I'll eventually learn how to do it right.