updated RWADef to Swagger conversion

used the APISpark RWADef sample to fix issues. Sorted resources and representations in the API Declaration and fixed bug with unknown representations