Add --retry (-n) option for scan

Initially the number of tries was 0/url. In order to get better results, it is now possible
to ask for retries.

WebPage.scan method has been refactored and splitted into sub-methods in order to have a clearer code.