Now checks that 'properties' is an object
Check that properties.platform is a valid object
Return null instead of throwing if deviceType not found on given platform
Merge pull request #34 from toaarnio/createContextFix

Even more rigorous argument validation; return null instead of throwing if deviceType not found