Added support for featured images

Also moved the registration of sidebars into a separate file.