Move towards packaging structure.

Getting closer to use this as a real library so I decided to move and
clean up things.