Code cleanup and request failure logging. Add hook for recommendation el...

...ements on home page.