Add permissions param to register

/cc: @Sirupsen