Button execution and more

All button execution for filtering photos implemented.
Still need to fix by distance though. Also fixed problem with exif lib
needing fileupload path. Cleaned up some unncessary functions and
removed unncessary references. Fixed some page redirection logic.