Initial commit

Fully functional version
+ works in Facebook apps
+ works in standalone web apps