Adjusting paths to the new version.

Also automatic detecting if on localhost and then trying to connect to localhost:3000.