[Content] Add API argument validation

Validate the method arguments aganist the signature.
Throw TYPE_MISMATCH_ERR exception is no match.
Use the new xwalk.utils module.
Merge pull request #314 from poussa/tct-fixes-3

[Content] Add API argument validation