Improve Puma application server configuration

Closes #297.