Ds auth

Extracts auth system into a proper gem.