Merge pull request #36 from pkazmier/master

Looks like a small typo in one of the register address offsets.
main.lua: Commented out profiling code that calls jit.dump module.
Workaround for issue #37. The jit.dump module isn't linked into snabbswitch.
Build 'snabbswitch' with debug info (luajit -bg). Forget 'snabblite'.

'snabbswitch' now includes Lua debug information (negligable size
cost) and thus prints good error messages.

The 'snabblite' binary isn't built anymore. (Didn't know about it?
Doesn't matter.)
intel.lua: Avoid infinite loop in selftest() if tx_load() never falls.
Use the correct Ethernet driver based on installed hardware.

As I start to work on the driver for the Intel 82571, I wanted
an easy way to allow for the coexistence of multiple Ethernet
drivers (LUA modules). Here is a summary of the changes:

1. We register the name of a driver module that can support a given
   PCI vendor / device ID combination via `pci.register()`. These are
   registered in `main.lua` for the time being.

2. When searching for suitable devices, instead of hardcoding the
   Intel 82574 device ID, the PCI module will search for any hardware
   for which a driver has been registered with the vendor / device ID.

3. To instantiate a driver, you no longer call `intel.new()`, but
   rather `pci.driver(pciaddress)`, which will load the module and
   return an instance of the driver for your hardware if one
   exists. The file `selftest.lua` has been modified to load the
   driver in this manner.

4. I added a property to the driver object called `M.driver_name`,
   which is used for printing the name of the driver that was
   loaded. It's to give us assurance that this code is loading the
   right driver.

5. For testing purposes, I added the `intel_82571.lua` module which is
   an exact copy of `intel.lua`. The only difference, for now, is that
   the `M.driver_name` correctly identifies itself as an 82571
   driver.

In summary, this commit allows me to hack away at `intel_82571.lua`
without stepping on your toes :-)