Moved using statements outside namespace.
Removed use of 'this.'.
Added SwaggerConfig.
Removed ToSwaggerType method in favour of Primitive.FromType.