Fixing #252.
Removing possibly harmful legacy code. Related to #238
Fixing missing import.
Code formatting.
Fixed typo.
Formatting.
Adding Content-Length header in result items.
Fixing imports/class names.
Not used anymore.
Removing explicit return in  __init__. Refactored inheritance.
Fixing typo in status message.
Added required cast.
Removed method that is already declared.