upgraded rails to v4, improved date selector, fixed accordion open/close states