Create content type with fields in one request

Change way of creating the content type and fields. Do one request per content type. This commit fixes #23.