added attribute resource tests and url routing for api -- backtrace closes #1 closes #2 closes #3 closes #5 -- updates #4