Refactored some packages and added javadoc to BrowsingContext.