refactor ApplyStyleSheet method

1. refactor CssBoxModelBuilder.ApplyStyleSheet
2. move some code to new ActiveCssTemplate class