#396 Moved POST handling to separate method
#396 Put now also uses create revision method
#396 Added var annotations
#396 Removed unused import
#396 Formatted commented code
#396 Fixed missing connection service
#396 Corrected return code for post