Add advanced search implementation
models/login: Fix unbalanced parenthesis
models/search: Implement tree searching

The hardest 65 lines of code I've ever hacked on!