Extensions: Parse composer.json in plugins dir

This is a split of the original PR: https://github.com/croogo/croogo/pull/142#issuecomment-14622397

For discussion/review first.