Almost done with authentication. Need to solve basic auth vs oauth problems.