Remove embedded customers and invoices data from factories and services.
Add node.js server-side scripts to return data.
Replace embedded customers and invoices data with ajax calls to server-side.