WIP: add --json flag to apm ls

This adds a `--json` flag to `apm ls`, grouping output in a json object under the keys `core`, `dev`, and `user`. This should be handy for things like showing packages grouped by these categories in the Atom settings view.

#### TODO:
- [x] Fix output of bundled packages to include more than just the package name
k, fixing