Fixed working purchase context during order success handler
Fixed item discount handling when an item is removed
Code consistency
Merge pull request #2908 from Just-m/JM-20143003

Coding standards update