Hostname change: 'localhost' -> '127.0.0.1'.

grunt-contrib-connect always opens 127.0.0.1 instead of localhost. Just keeping these in sync to prevent any cross-domain hiccups (despite the fact that 127.0.0.1 IS localhost)
Organizing map code a little