Update application architecture

- Streamline the way routes are added.
- Simplify views structure.
- Add mongoose support.