Added support for form-based authentication. See #5.