Added totem-based tests

I added tests for nngraph examples and the advanced features.
The tests use totem: https://github.com/akfidjeland/torch-totem

All the tests will pass, after merging https://github.com/torch/nngraph/pull/28