minor scene manager cleanup
clean up layer code
split out functionality into separate files