Update filter logic to use new embed template and embed API endpoints

@anthonyt Want to have a look through this?
What happens if mediacore returns an error that isn't JSON and this parse fails?