Implement `chain` and `getattr`.

Only `store`, `function`, and `import` need to be implemented before I can start working on bootstrap code.