Pass switch number in to local from command line plus more instrumentation.

Conflicts:

	frenetic/katnetic.ml
Swap args incorrect order.
Add size function

(Partially cherry picked from b1a4866)
Add performance logging
added dump classic to katnetic
Refactor flowtable printing

Lift the flowtable printing code in Dump.Local into its own function,
and resue it in the other Dump.* modules.
Merge pull request #183 from frenetic-lang/frontend-refactor

Frontend refactor