Refactored code to be more MVC and modular. This involved taking everything in backend/search.php and refactoring it. More testing to be done but preliminary results are good. There's some significant work done in js/script.js to.