Posters and thumbnails now output correctly using api methods. All api methods can now output either HTML page or raw JSON ( depending on 'json=1' param in the URL)