Implemented custom value renderers

Work in progress, don't merge yet.