Refactoring Kernels and the Actions inside

- Making use of the flexibility of client.html (the visualizer)
- Removing the "current_sample"	parameter from various actions
- Adding helper functions for printing actions to be used in
  example test cases