Buying and registering a car in Poland

What is the registration process when buying a car from a previous owner? After you buy a car in Poland, it has to be registered at your city/town hall, at the vehicle registration department, within 30 days. But first there are a few prerequisites that you have to...