Allow record creation with PUT. FIxed bug to return 201 Created. Start migration to proper use of GError to pass/propagate errors between modules