Laget en book navigator og httputils fil

- extracted code from swipe and index, reused in both
- attempt at proper encoding of spaces in dir/file name for URLs