MT#5879 Email templates buttons for contract forms.

Contract::edit is common for all contracts. For peering contract without
email templates works ok too.
MT#5879 Contract buttons and generate_invoice.

Remove contract buttons from Reseller form work. Fix generate_invoice
error found in run on clean new vm.