Code quality improvements for NGSI Event Broker

#### Reviewers
@jesuspg @flopezag 

#### Description
Related to issue #24

#### Testing & coverage
Better coverage and rules compliance, lower tech debt ratio.