analytics: merge event type and category into event column

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
analytics: use MySQL safe equal operator to handle NULLs

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
Fix bad context for new getRefundInfo call (CallContext -> TenantContext)
Fix bad effective date for payments to reflect the date of last attempt
Javadoc for Payment
analytics: fix TODO

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
Merge remote-tracking branch 'origin/analytics-as-osgi-plugin-support' into analytics-as-osgi-plugin
Hack DefaultCatalogUserApi to return 'the' catalog
Merge remote-tracking branch 'origin/analytics-as-osgi-plugin-support' into analytics-as-osgi-plugin
analytics: update to latest Catalog API

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
analytics: add second_item_record_id to invoice item tables

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
analytics: switch to MySQL for tests

We use MySQL specific queries now.

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