Added integration test for keys with periods (for #160)
Make key parsing more robust, including support for keys with periods (fixes #160)