Fix ledger/account/period dropdown usage and arguments
Fix period id dropdown 'selected' value when displaying all periods' accounts
Fix logic for determining the view records mode