Added file mode when putting templates.  Modified start/stop/restart to use upstart commands.  Fixed check for /etc/init to use generic sh syntax.
Handle a blank nginx_server_name (possibly needed for IP-address only configs).
Removed reference to non-existent unicorn_init.erb template in generator.
Modified foreman:export to initially export to a temporary location, then move to the foreman_upstart_path, since running sudo within rbenv is problematic - this breaks the process into a ruby step run as the deployment user, then a shell step (moving the exported files) run under sudo.
Merge pull request #1 from tinynumbers/various-updates

A number of fixes/tweaks/updates