Fixed OpenSSL multicore, added timing function, moved cleanup scripts

Addresses these two issues:

https://github.com/STH-Dev/STHbench.sh/issues/14
https://github.com/STH-Dev/STHbench.sh/issues/3

Also moved cleanup scripts within function to keep things together.