Abandoned status metadata

Added the abandoned status to the `toArray` method of packages so it is
attached to the json data also.

This complements the abandon package feature and allows us to carry on
with work in composer to warn users of abandoned packages at install
time.