State service

Added a state service to handle application state.
Updated sdPagination and sdSort directives to use state service.
State service

Removed old code from users list controller.
State service

Changed settings and state service initialization.