Fix rotate in iOS8.1
Add Seafile Document provider, make underlying code extension friendly
Move files shared by app and extension to common
Migrate NSUserdefaults for extension
Code refactor and eliminate some warnings