Implemented cpu essentials for milestone 0.1.

There still are missing functions left as stubs to implement that
are not required at the moment.