added CompositeLayer
Merge pull request #636 from goodfeli/composite

added CompositeLayer