Export environment variables & clean up some /photo stuff

/cc @sshirokov