fixes #11 modularize Camera.

           Also fix bugs because the initialization of
            the network manager was done too late.