major API cleanup, as well as adding indicies to DB for block_index and adding the ability to limit range on most read API calls. ALong with the new order_by/order_dir parameters, this should provide the necessary filtering/sorting functionality to the API calls