Added a base application path module

- basepath module facilitates ajax calls when the application is on a
subdomain
- Automaticly symlink webroot folder