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.

Fixes #401.