Fix bugs and add more logic.

Now it enforces a limit on the number of consecutive blocks a
single user can book.