Added functions for # of completed tasks and volunteers to cached apps
Missing function parameters
Pass number of volunteers and completed tasks for apps to be shown in home/index template
Pass number of volunteers and completed tasks to app index, app details and app tasks templates
Test skeleton for cached apps and converted test_cache into package
Missing Copyright in file
Tests for n_completed_tasks
Removed print
Tests for n_registered_volunteers
Tests for n_anonymous_volunteers
Tests for n_volunteers
Added backref 'app' to featured relationship in app model
Format SQL queries
Tests for get_featured_front_page
Added test case for hidden featured apps
Tests for get_top
Extracted sql query for retrieving user apps to a function. Pass user apps to profile template
Merge branch 'master' into issue-689-volunteer-tasks-statistics

* master: (29 commits)
  Updated default-theme submodule ref to master after merge on it
  Updated submodule ref for default-theme. Includes new blog templates
  Use master default-theme branch for now
  Updated redis cookbook submodule ref.
  Updated default-theme submodule reference.
  Added registered_ago field to cached_users for a pretty dated format
  Fixed alembic history
  Updated submodule ref
  Changes in test_blog.py to fit new factories refactor
  Removed commented lines
  Added changes to documentation
  Update default-theme submodule ref
  Update default-theme submodule ref
  Markdown support changes in theme - update ref to submodule
  Default-theme submodule ref update
  Fix: pass app to blog template
  Refactor
  Added test cases to test_blogpost_auth: blogposts for hidden apps, and permissions based on the app the blog belongs to
  Cleaned up imports
  Added tests for blogpost delete view functions
  ...

Conflicts:
	pybossa/view/applications.py
Merge pull request #745 from PyBossa/user-apps-in-profile-template

Extracted sql query for retrieving user apps to a function. Pass user ap...
Merge pull request #746 from PyBossa/issue-689-volunteer-tasks-statistics

Issue 689 volunteer tasks statistics