Add base for code search

Refactor search module
Add new search without ack (using grep and perl)
Add rpc method to search for code search
Improve results parsing in code search
Remove old log in files editor
Change output format for code search
Add base command for searching and replacing in files
Fix replace in files command
Add more options for code find/replace
Fix dialog close promise propagation
Merge pull request #318 from FriendCode/feature/codesearch

Feature/codesearch