Stub script for JSON dumping basetypes
Move schema fetching into config module. Also some space -> tab replacing, sorry.