ported from sandbox
added test
design changed
added utility method for search
added twitter authentication structure