Add a success callback on show method

After the PreferencesActivity intent closes, executes a success
callback with a json object with all the preferences as response.
Add .gitignore
.DS_Store