Refactor more things and greatly simplify the example www adapter.