As for the DW error you are getting you should try deleting your cache file to see if this resolves the problem for you. Here are instructions for deleting this file:
common_installation_issues.pdf
For the other issues you are getting it seems that your webserver is not properly configured to be running with the localhost address. If you installed with MAMP you should refer to the documentation for getting the server up and running.