Factored out Credentials and updated LoginPanel. Both are now reasonably well documented