Base implementation

@macnibblet if the priority is `10`, then `registration` comes before `submit` and `csrf_nonce`: just make write them in the code in the same way they are sorted