Weighted Function Spaces with Applications to Boundary Value Problems