Added site search, finished home layout

Added a global site search in the header and a page to handle search
results. Also finished the home layout and optimized most of the used
code.