refactored search and user controllers for speed
refactored user and media models for speed
created user preference model and migration