add proper user agent support

@rdegges I've taken the same approach as we did with flask. Please just change the '0.0.1' to a proper version when you do a release.