Apply mmun suggestions and other improvements:

- Give name to exported functions to improve error traceability.
- Moved files back to src. No need to create a /pacakges dir.
- Enable esnext flag in jshint and fix all warnings.
- Update broccoli.