MT#5879 Add prevmonth option to ease prev month invoices generation.

Additionally to strict stime and etime.
MT#5879 Add help for generate_invoices options.

Cherry-picked from 49f19db072adf65b0864282376a08a3a2436046e.
Conflicts:
	share/tools/generate_invoices.pl
Solved.