Added ww-authenticate header for basic auth when no auth details are sent

Closes #163

@devcritter could you review this for me? It's pretty basic.