Added Nearby_Categories in getNearby_SEs

Cleaned up getNearby_SEs.php by organizing the code into functions
(much more readable).

Added code to determine the categories in the found Nearby_SEs and
query Nearby_Categories table for those categories found.