Add lib directory

Add lib directory and our first available library, middleclass!