Allow creating an autocategorization rule based on a transaction
No particular hardship here, just some small checks to make sure the category actually exists since URL parameters can't really be trusted.
The transaction's actual label is used (and not the custom label, which is not used for autocategorization rules).
Fixes #1159 (closed).