core/net/scan: New API for energy and beacon scans

This commit provides a mechanism for performing beacon
scans (or a "network scan") and energy scans.

Currently Contiki devices don't transmit beacons, but this
change is important step toward full network association
support. Beacons from other 802.15.4 devices will be
detectable with this API.

The beacon scan functionality is not 802.15.4 specific,
and can be used by any link layer that supports beacons.

Scanning support requires that the radio device implement
the new parameter API.

This API is documented in the associated headers. An example
is included demonstrating how the API should be used.