replace deprecated express methods

Please pull to improve support for Express 4