Contracts improvements

Adds:
 * Contract_group
 * Changes logged in mail.thread
 * Search on child code for contract assignements

Fixes :
 * Contract_line access rules
 * Travis PEP8 and headers (
 * Mandatory correspondant

Removes :
 * Grouping option in invoicer wizard. Now, if you don't want grouping, you should create 2 groups, or set different next_invoice_date on contracts.