Fix EZP-21304: REST api does not parse siteaccess in request uri
refactored using eZSys::indexDir()
fixed eZSys initialization using index.php
Merge pull request #691 from joaoinacio/restapi_sa

Fix EZP-21304: REST api does not parse siteaccess in request uri