Updated CSRF auth
Added checks to see if csrf token is valid on singular mark calls
More search updates
Added UNION DISTINCT to make sure marks are distinct
Update count in Plain Model to use column name as total
Added getTotalsSearch to marks model to get the total results for searches
Added some comments
Moved position of $join variable for getTotals
Updated search query to sort correctly from database
Updated comments
Updated lookup_type