[WIP] Authentication

Do not merge, 'tis a work in progress. :)