sharing to twitter and fb, api refactoring (fixes #13)