Get column definitions from both <td> and <th> elements

Allow ng-table to populate list of columns from both <td> and <th> elements.

Previously custom-defined thead rows would cause ng-table to not detect any columns, which would break pagination.