Added configuration with injection. Moved jersey configuration to a separate class.