Added swap_memory, cpu_times, cpu_perent, cpu_times_percent and some enums

Merge Pull request from Andre Ryser. Ths is not directly merged since I
edited it to remove some whitespace modifications.
Deletes trailing whitespaces.

Signed-off-by: Noufal Ibrahim <noufal@nibrahim.net.in>