Move content_policy stuff into separate file.
Added ContentPolicy (currently only javascript rules) support with sqlite.