integrating master

hi karl,

a bit too much changed recently so I've integrated your nice work with the latest master. 

Would you try it out? Although all test pass I didn't find a test regarding the turn restriction stuff, so I cannot be sure if all works as you expect (or we expect :)) 

Probably adding some tests? Like some for reading turn restrictions/costs from the osm xml and some for storing (without osm dependency), algorithm and CH?

Let me know if I should go ahead to add an example test for one of those cases!