Add comments and contracts

Add comments in class APP_2048_WEB and contracts Add contracts to
is_valid_password and is_valid_nickname in class USER_2048_UNDO