OO implementation

Better dir layout: 'public' is the only dir exposed by the web server;
'classes' hosts the OO classes; etc.