Update values in the list when the data changes

Fixes #26

Added helper functions:
- render investment.
- get all investment data, not used yet.
- the update investments event is the first one that uses an array of data
and uses the investments attribute to show this.

TODO:
- What happens on update if there are fields not defined in the new data
passed in? Should the backend or data ensure this doesn't happen?