What the "regulation fans" don't realize is that the bigger the company the more lawyers/accountants it can hire and work the cracks in the system.
This is also valid in the case of Starbucks. Regulation is increased for a reason, and the only company that has the resources to comply with it is Starbucks.
Regulation has to be simple, and in the case of transnational corporations, were country borders are mere a detail, increasing regulation will mean essentially nothing to the company and a loss of revenue to the country.
Apple and the other large companies can afford to keep the profit offshore. They are still paying full rates of tax on the revenue and profits they need to keep their businesses running.
When Apple pays a dividend, they will do it by paying full US tax rates on the dividend. Thus these tax structures are biased towards big companies only because they can afford to defer payments.
That said, all the knowledge that you need to setup a similar structure for a small business is available online and has become a lot cheaper. If you are accepting credit card payments you can setup in an offshore nation with a business registration, a bank account and a merchant account for a few thousand dollars.