Update views for use with erica

- erica assumes the first function in map is the map function.
  Move helper functions inside the map function and hope for the best.
- Add ignore file for erica
Add log import script and associated stuff