Moved lots of code to CommonWorld and update to version 0.4.0
Moved CachingFunction to CommonWorld