Added subthemes functionality - resolves #401

Added functionality and tests for css subthemes support.