mc: add mcedit and subshell support, cosmetics and cleanup

Signed-off-by: Stephan Raue <stephan@openelec.tv>