Refactored document handling into its own Flask submodule
Removed deprecate code
Preliminary break out of search functionality
Refactoring Search code down