This commit reapplies the category refactoring for PR review purposes.

Revert "Revert to old category module"

This reverts commit d1e68fb4f63e421bc5378ac0704c0581d8a92ab1.
Don't return array, just value. This is how this API was before.

Fix Categories module default data installer.

Since the ID field of CategoryEntity is set to autogenerate, the default
ID in the default data is ignored. As a consequence the prepared data is
not saved as intended. The commit disabled autogenerate for the CategoryEntity
at install time.

Handle when manipulating root category which has a null parent (was 0 in core<=1.3.5)

Prevent data pollution in foreach loop.

Handle condition when nothing was registered, so there's nothing to delete.

Add legacy method to old D2 category entity.

Consolidate old abstract into new for BC

Add some BC methods.

Fix creation of category attributes and paths when creating a new category entry.

The path and ipath calculation was buried in the DBObject postprocess which is why it was missed.

Default new categories to active.

Add entity selector plugin

Clean up comments
add StandardFields to CategoryEntity and temporary upgrade code
update listener to Doctrine 2.4 class
add standardfields listener to symfony config
update category entity (for BC) to include obj_status field
correct version
remove temp code from upgrader
Correct typehint
Correct typehint
correct typehint
add Core Listener for Blameable behavior and set parameter to use. Adjust CategoryEntity to use Blameable behavior instead of StandardFields
move category entities to Categories module and refactor
pass correct data back in getRegisteredModuleCategoriesIds()
properties cannot be private for inheritance to work.
add import for moved class
add standardfields type behavior to categoryregistryentity
change actual column name in tables.php
cannot deleteWhere from non-existant table
add defaults on object insert for Categories_DBObject_Category since the table no longer has defaults if it was installed by Doctrine. (News module now installs properly)