Added Configurable Directories feature support

* Replaced hard-coded 'www', 'platforms', 'plugins', 'hooks', 'merges' directories to ones read from .cordova/config.json
* Added initial version of tests