Windows support

- Use different method to pass html & config to phantomjs process
- Improve logging