HTMLUnit base and login script

Implemented HTMLUnit.