Rewrote almost everything

Rewrote navigation.
Rewrote api interface.
Removed dependance on parsedom.