code/svn: Ignore setting HTTP header to null.

An HTTP header with null value causes NullPointerException by Netty.

This fixes #366.
code/svn: Fix incorrect 401 when trying to lock.
code/svn: Rename loginId to username.
code/svn: Remove unused imports.