Attempt at Authorization spec. Fuck java.