more impl
add index methods
fixes for writing layers
add some leet bash-scripted tests for image upload