Refactor lib/* to move it to source/commons/*