Tiny cleanup
Updated rest api specs
only require thrift if we are going to use it

This commit is mostly for travis since thrift has trouble downloading
at times.