Fixes user loses connection

Fixes a major issue in WRoute::getDir() and cookie assignation in
WSession.
getDir() now returns '/' if wityCMS is used in root directory.