prepare internal module to the recoder implementation. + code cleanup

- add the methods to initalize the capture device
- add function init_in wich must be called before capture sound
- add struct CaptureContext, no methods only for internal use, returned by init_in,
useful to be shared between task.
- clean code: trailing whitespace + indent