Fix inventory handling during checkout

* Product inventory is now updated accordingly after completing the order.
* Fixed order number generation.
* Disable profiler in test env to gain more performance on travis.

Fixed #401.