analytics: first pass at refactoring the business logic

Extract all the logic to create Business objects from the dao to
individual factories.

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>