1.5.0: automatic login, refactoring

Refactored the PH! module to use when.js promises instead of nested
callbacks, leading to a simpler worker function.
Implemented automatic login: try to login up to three times if the forum
main page is unauthenticated (i. e. 3 menu items are in the top right
box instead of 5).