fix a problem with sqlite: gl batch screen did not list previous years in the financial years combobox.
the error message was not very helpful, in the server log, therefore printing now the stacktrace as well.
yearend: reallocation of income and expense accounts: do not use ytdactualbase, but the actual of the final period of the current year
fix a problem with yearend test.
only run reallocation if it has not been run yet. check glm.ClosingPeriodActualBase
merge from lp:~tpokorra/openpetraorg/20141110_gl