Port-agnostic XHR calls, some path sanitizing and code cleanup
Merge branch 'master' of github.com:ArtisticTechnology/octopress-remote