Have you looked at the "OSA Kit" system?
I suppose it's possable it may help you with your quest...

I have tried this system and it does work well and it's easy to combine a compiled 3dgs project so the project runs through your browser. It does have some advantages over simply downloading a zipped folder... etc...etc...
In any case... Have a look...
http://www.osakit.com/
laugh