Gotten authentication to work
Fixed some tests, some remain
Merged