Rewrite `apm install` functions.
Rewrite `apm install` functions.

- Cache the results of `apm list` for better performance.
- Reuse `_apm_package_is_installed` in `apm`.

alphabetum/dotfiles,alphabetum/dotfiles,alphabetum/dotfiles,alphabetum/dotfiles