Remove certnames from exported reports

As a side effect of a recent merge, I introduced a bug in the
report export functionality.  Report submissions should not
contain the 'certname' field on individual resource events,
but that field does come back in query results now.  This commit
simply removes it from the export data so that we don't try to
send it back up on imports.
Merge pull request #507 from cprice-puppet/maint/master/no-certname-in-exported-resource-events

Remove certnames from exported reports
Use `CGI.escape` instead of `URI.escape` in tests

The test were building up some queries that contained timestamps,
and inserting the iso8601 timestamps into the URLs using
`URI.escape`.  However, that method does not do any escaping for the
plus (`+`) character, so when we hit a timestamp with a positive
timezone offset, the `+` character was being included as-is in the
query string.

On the server side, the `+` would then be decoded into a space
before processing, which resulted in the timestamp no longer
conforming to ISO8601.

This commit simply switches us over to use `CGI.escape` instead,
which should cause the `+` to come out intact on the server
side.
Fix #clear_database helper path for embedded

Previously we were clearing the wrong path, this patch corrects that.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #510 from kbarber/clear_database_embedded_bug

Fix #clear_database helper path for embedded
Add anon option

Signed-off-by: Ken Barber <ken@bob.sh>
Add anonymizer hooks

Signed-off-by: Ken Barber <ken@bob.sh>