Devise and search

Closes #5, #4, #3, #2