fix up error caused by mock (bug 972574)
update pfs for flash; bug 982594
validate the scheme is http

TODO: move this out of serializers to somewhere common, change the name
so that it doesn't override the django builtin.