add license headers
add servlet tests
fix test
general handling of assuming servlet uri