Authentication support.
Removed useless imports.