Move some directives to commons.
Remove console logs.
Implementing searches.