Refactor dirs (again)

Follow-up from: https://github.com/bitpay/bitcore/pull/561
Maybe hide these under "encoding"? We actually don't want the users to use this unless strictly necessary