added function for providing a custom compare method
added tests
refactored function; prevent duplication
code cleanup
changed order of parameters
Merge pull request #326 from sulu-cmf/feature/compareEntityData

[FEATURE] added function for providing a custom compare method
bugfix caused by refactoring
added get all localizations method
added method to interface
Merge pull request #327 from sulu-cmf/feature/get-all-localizations

added get all localizations method
Merge branch 'develop' of git://github.com/sulu-cmf/sulu into feature/page-refactor
removed cache files
Merge branch 'feature/page-refactor' of git://github.com/sulu-cmf/sulu into feature/page-refactor