improved autoproxy config; wrote UserBO and DiscountBO; a little refactoring