[ task #731 ] Uniformize ref generation. Contracts

[ task #652 ] Reduce clicks into creaton of orders, invoices, etc.