Issue #307: fix API regresssions

- allow strings with dots in router script for API calls
- escape slashes  when searching for an entity
- fix perfect_match search on string search returning no result
- adapt dev server script to run outside of the web folder (needed to allow dots in urls)
- change dev server port to 8082 (less likely to collide with another instance)
- redirects of API searches without a repo fallback to 'release' repository to not fail (no cookie to read with the api)
- updated README
yes, fixing. Although the syntax is actually correct :)
("Since PHP 5.3, it is possible to leave out the middle part of the ternary operator. Expression expr1 ?: expr3 returns expr1 if expr1 evaluates to TRUE, and expr3 otherwise." http://php.net/manual/en/language.operators.comparison.php)