Ported lots of anypic appdelegate code into project, needs lots of fixes…