Merge pull request #666 from rdsubhas/master

Log error messages when API controller catches them
Refactor and simplify Advanced Search functionality
Leftover: Date range filter in Advanced Search page