Allow circular dependencies to be installed

When two packages are depend on each other (directly or inderectly), `bower install` crashes with maximum call stack error. The error is caused by recursive `Manager.toData` method. 

This patch fixes it by skipping, dependencies of  the endpoint if they are equal to one of the parent endpoints.