remove unused import; removed redundant app definition
organizing methods
freeing popover after dismissal
remove table view template
cleanup
prevent crash when choose photo is tapped twice in succession
Merge pull request #9 from dz1111/master

Cleanup of table view controller
Implemented NSUserDefaults; Added 'defaults.plist' to store default values for app preferences, debug mode setting is now handled by preferences
shut up the compiler about logout:onCompletion -> logoutOnCompletion