fixed datatable related issues and localization

removed hardcoding of locale and dateformat.
Added new option for user to set the dateformat in user settings.
Added single row table to datatables in loans savings and groups
Added localization for few error messages
Made locale and dateformat to be stored in cookie.