Rewrite. Added nested layout support. Overhauled testing with jasmine and istanbul.
Readded travis-ci.
Updated README.md.
Bumped version.