Added ability to save state

This PR allows you to set the stateSave and stateDuration options for datatables.
It also repopulates the filter dropdowns and text fields based on the saved state search data.