utils: Add deprecated_attribute decorator
contents: Add deprecation warnings for Page.filename and StaticContent.filepath
tests/support: Factor LogCountHandler testing out into LoggedTestCase

To avoid duplicating boilerplate when we need to test logged messages
outside of TestPelican.
test_utils: Add log count checks to test_deprecated_attribute