Fix: post_request properties processing was wrong.

This includes:
 * Fixing properties post params building.
 * Cleanning up prints, and replacing them for logging.
Merge pull request #2 from catalanojuan/fix-properties-and-cleanup

Fix: post_request properties processing was wrong.