Use direct functions instead of Scope object
Support template based in string and basic elements

Also simplify the process for flatten.
Use private _flatten instead of flatten
Use scope as a package
Style
Separate tests for modules
Add info for Travis CI