Fix dependencies on libgit2

Signed-off-by: Tibor Vass <teabee89@gmail.com>
gofmt + syntax fixes
Fixes to get it building
Create an empty default network
Merge pull request #99 from aanand/extensions

Fixes for buildability