It's kindof working (with my very limited testing), and also the logic might still be quote incorrect, as I still need to clarify a few points with PesachZ.
Anyway, feel free to comment (and naturally fix) any bugs, and if sh*t happens for real, give some debug info ;P
You might want to turn up debugging level to 2 (or even 3) to watch the best continuation logic debug output in the console
EDIT: Known issues:
- Roundabout support not yet available
- Segment type checking incomplete
- Angles >44 may not be correctly filtered out