Move much of the server api and Bukkit implementation into common libs