Wire up stub API.

- Fix issues with the stub mechanism.
- Ensure parts collection view works.
- Change part view from item view to layout view.