Allow http basic authentication and add posts integration tests
Ensure associated model creation returns validation errors
Refactor create_associated_resource