Code cleanup and compatibility with Symphony 2.3

Version 1.0.1 is a cleaned up version for Symphony 2.2.x

Version 1.1 is compatible with Symphony 2.3.