Add closing of the biling cycle.

Add code that closes a billing cycle and opens a new recurring order.