Fixed #433 whereby csv production from account was missing account
codes in some circumstances

When printing an account a transaction may store the accounting code
in the "other" account if that account is in the same domain. The csv
printout was not picking up this account in these circumstances
Fix problem with database creation routine not setting db version correctly

Also seem to fix up html errors in newuser and users
Merge branch 'master' into demo