Add options to limit bundle and image size.

In production we are finding that some books have tens of gigabytes of
images.  Protect our service from excessive resource consumption when
attempts are made to render these books.

Bug: 71647
Change-Id: I75a97f7e36c6eb0d1c9a419ec758cf4c35eaba4d