Added autostatus rules for self

Issues can now be automated based on rules that apply to themselves.
This adds support for almost arbitrary rules, non self rules still take into account only the status.