order_type taxonomy and register_order_type() function

This is still a draft, because we need to add some more things to work well.
I need feedback to know if I'm going the right way or not.

cc @mikejolley @coenjacobs