added api action for retail orders

retail managers (as they will probably be called) can fetch unpaid and
recent orders created on location in the store
some code cleanup