Update Datatables.php

Added the ability to pass a function as parameter for editing or adding columns.
Bug Fix.