[Content] TCT crash and passrate fixes

Implement scanFile method which is heavily used by the TCT web api test suite.

Fix a crash for filter with invalid parameters (no bug yet).

Rename uri to path conversion methods more aligned with chromium.

Add test code for scanFile
Merge pull request #297 from poussa/tct-fixes-1

[Content] TCT crash and passrate fixes