[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.
Fix XWALK-1837: include callhistory only in Tizen mobile target