Pie charts module revised completely

SVG base realized; user-defined event handlers support added; complete
refactoring etc.