Fix off-by-one in Preference Option Handling

Fix an off by one in the handling of the preference option that was causing the preference to always be set to zero.  This bug causes the first advertisement received to always be accepted regardless of preference. This bug may cause unnecessary prefix churn depending on advertisement ordering.

This pull also contains a fix for an off-by-one in the command-line client id handling.