Got REST working, using it to get stuff with AJAX where needed.