Fixed undefined $directed in AbstractElement, unused code, comments, various anomalies.

- Add Code Coverage support via Travis.
- getRoot() does not return a GraphInterface on an unbound element.