Inserted a 'max_pages' counter.

Added an extra input 'max_pages' into crawl_web() which limits the
number of pages checked/traversed.