Added optional body-decoder for post routes, and tests for core