Fix some auth security issued, added trim filter, fixes #6, fixes #5.
Resolve merge conflict.