Cleanup of spidecoder and config reg addition

Moved some code out from procedure to make it less
complex. Also added config registers and led registers
Write still not supported though

Signed-off-by: Thommy Jakobsson <thommyj@gmail.com>