ProjectJournal: cap the number of undo states to prevent infinite memory...

... buildup

The cap is hardcoded to 100 for now, TODO: make this number configurable (or even better: use a max. memory amount instead of max number of states)