Implement beacon API. Partially adds BUKKIT-2842