Email notification template classes + introducing CustomSearch template

Now Email notifications can occur from various templates. Each templates has its own Template class to handle template rendering.