Added .htaccess file.
Adjusted vendor dirs of example applications

- update composer json to chosse right path
- set vendorPath in application config if not default
composer.json indentation fix