Updated library.php to add list of installed plugins

- A little code clean up
- Added a third tab to list installed plugins