Bunch of stuff about proper 305 handling.
Added a debug test servers implementation.