Added Net class methods.

Added some basic net functionality. Basically just an extra layer of
abstraction on top of vlc's net namespace.