API Adjustments

Setup .htaccess mod_rewrite to link api urls to /api/index.php.  Added
additional code to handle get/beacons and get/listeners with or without
ID.