added profiling support

profiling support remotely via /debug/pprof and -webdebug or local with
flags -cprof and -mprof added
images aren't parsed anymore, byte array just gets copied