Fix modal handling.

Remove hardcoded columns in datatables fields.
Make modal popup wider to fit the table better.
Add pagination to table.
Use datatables by default for each table.

For the main tables, we use datatables now anyways.
Also use it for datatables fields within forms (needs some visual
optimization and positioning of error messages, as well as
validation code).