Correctly initialize theme
schema: add index for article and profile search order filters

(ActionItem3039)
schema: adding cache counter fields for friends/members and activities count

(ActionItem3039)
person: register and use friends_count to fetch most_popular people

(ActionItem3039)
action_tracker: register and use activities_count to fetch most_active profile

(ActionItem3039)
test_helper: improve assert_order output

(ActionItem3039)
organization: register and use members_count to fetch most_popular organizations

(ActionItem3039)
action_tracker: moving activities_count triggers to a lib

(ActionItem3039)
delayed_job: log job's failure backtrace

(ActionItem3039)
delayed_job: let max_run_time be the default value

There are some jobs that may take more than 10 minutes like the
spaminator or the cache counter updater, will use the default
max_run_time which is now 4 hours.

(ActionItem3039)
schema: adding index for products search

(ActionItem3039)
person: fix tests

(ActionItem3039)
cache-counter: update counter straight on database skipping callbacks and validations

(ActionItem3039)
profile-tests: reload models to get updated counts

(ActionItem3039)
organization-test: fix action_tracker creation
Translate layout template strings
search-optimizations: fix broken tests
Merge branch 'search-optimizations' into stable
Merge branch 'ai2990' of https://gitlab.com/brauliobo/noosfero into brauliobo/noosfero-ai2990
theme: allow multi-level inheritance on approved_themes owner_type