Squashed commit of the following:

commit d90acf3126418e994bde79a6362fa019df558903
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Thu Sep 25 09:31:18 2014 +0200

    * remove xhr object from HttpError handling
    * update dist files

commit 4b8ef98fbec6c6df2c5622337d3b58c43d9ffa32
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Thu Sep 25 09:30:22 2014 +0200

    * update dist files

commit 0fd7c986592c8bc1b175e523cdb247095d5a377f
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Thu Sep 25 09:30:13 2014 +0200

    * handle response status 304

commit ee3e4aad1228d7a9a369a3a2a04d2ae100a7737c
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Thu Sep 25 09:29:48 2014 +0200

    * adding X-Poll-Interval to response headers

commit e8b67c0be07412f19eab2effb7aa5e7c0eb896fc
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 15:02:12 2014 +0200

    * use story reporter for karma tests instead of dots

commit fba2d040cdcb2fa5192a108378e3947a059caaff
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 14:59:39 2014 +0200

    * remove karma-phantomjs-launcher from package.json

commit 6f9fc0bd0b9f9007b040714475a477ee75c6b4e4
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 14:56:37 2014 +0200

    * tell travis to start xvfb in yaml file

commit 84b89f23c185b7e561c5c9fb0e0fa6b2790c0762
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 14:52:46 2014 +0200

    * set browser to Firefox in travis test setup

commit 7ca8a63595388f217a6a68df1daf9c3cab1ba792
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 14:52:25 2014 +0200

    * remove obsolete variable

commit c90fa53bfa4dcde44d81761b03badcf0a4eb08a9
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 14:43:25 2014 +0200

    * new dist files

commit b5d6c3e41e3b8a7be109a14039fe736a4065ffe4
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 14:43:07 2014 +0200

    * check authorisation when requesting page

commit 3b9efcfd486a0725d947def069eda370a55c08fe
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 14:42:34 2014 +0200

    * use simple string as url instead of new URL constructor

commit 7ff5900e6813c0991ae8f1116dc89884f146b4b7
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 14:42:03 2014 +0200

    * add pagination tests to core spec

commit e54a75ed4038bce87ee7179fc9d6c524e9de4a71
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 14:39:43 2014 +0200

    Switch to firefox as test browser because PhantomJS doesn’t provide
    response headers which are important for communicating with Github eg.
    rate-limiting and link headers are very important.
    And because it is the standard browser on Travis

commit 382eebe1efbbf47f994413aba70cbddb3085c48b
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 12:43:13 2014 +0200

    * improve authenticate method
    * use switch instead of if branch
    * set Github#auth to false in case of invalid authentication values
    * post an info message in case Github#auth is set to false

commit 9f87a340b43ae4770796f75830c471e68a2d2b2f
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 12:41:42 2014 +0200

    * add core spec

commit 2161c6eae433d4b9de37420569acd99267bdeb2b
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 11:58:03 2014 +0200

    * remove console.log statement

commit 7c02a2fe21f29422626c9bd6907400c95df67fe0
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 11:57:43 2014 +0200

    * add search specs

commit d67130650d61234d4a733f9184567b7b4636c6fa
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 11:38:21 2014 +0200

    * add user specs

commit c84d55a285321475afcceb121f1ad6934c6828df
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 09:39:50 2014 +0200

    * add misc spec

commit f29c1ecfab5dbba843950c6ea2a2c5f631f7858b
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 09:37:23 2014 +0200

    * add markdown spec

commit 5b431aeb572f7884d344ff0a881b1ac2f8c45f5d
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 09:26:10 2014 +0200

    * remove console.log statements

commit 0274492c79d4dfd33fd9afafd0cf8efa0002fefa
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 09:21:48 2014 +0200

    * fix events spec by checking with ‘toBeGreaterThan’ than exact value

commit 8e8ec0c01e19a82f796393c904d818f756a65865
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 09:20:47 2014 +0200

    * add issues spec

commit a3a60c7ea85188ddd493e8a5e5e6f1fdc8ad686e
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Sep 24 07:56:05 2014 +0200

    * add gitignore spec

commit ee0783dec6082c0475efb65934c9b4c81b84e2fe
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 21:41:50 2014 +0200

    * clean up dev karma config file

commit e931ade14dec6330b2eac059cfad625961411b5e
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 21:41:18 2014 +0200

    * add karma chrome launcher for test purposes

commit 3887f3f859f949b46d7960fcbec706fa7e3cffed
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 21:40:58 2014 +0200

    * fix section build template

commit e3d7f8194f29c92b7bf8a88ab36af15c839829e1
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 21:40:17 2014 +0200

    * comment out test generation for now

commit 9f6f97afc577bbb198956ee72d163f415ef41258
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 21:40:04 2014 +0200

    * add tests

commit be34d9d1ccaff09b6f447de08f67b0b7ccd3e6b1
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 21:39:45 2014 +0200

    * update dist

commit 6f63bc76605fb560d4bda1f0a92e0e3717283817
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 21:39:30 2014 +0200

    * move existing tests to folder old
    * use new generated tests

commit 5d9983c7b93f9179249496120a5447c8632eacbf
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 11:25:09 2014 +0200

    * update dist files

commit 4a7667f57e92cdf1c6f89be984fff4f64e5d29d4
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 11:24:52 2014 +0200

    Fix error handling in parseParams method

    * request now fails if parseParams find an error in request msg object

commit c2b0b8754c43d1d52fd458178e5b47246691967a
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 11:23:57 2014 +0200

    * fix util log handling

commit 26cfd59a3fed766547464353fc230bde00aeb1f4
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 10:57:06 2014 +0200

    * add minified example

commit cbf6c2ae61f829ae2ec4ed69e46ed4ce78fa1718
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 10:56:54 2014 +0200

    * add dist files

commit 748b32593effca64953492615cdd4be3b6ea6247
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 10:56:41 2014 +0200

    * add uglify task to build task
    * add uglify node module

commit 552f6f8174f9b4e86b9ba6544e64750333dc297e
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 10:41:00 2014 +0200

    * remove unused node module from package.json

commit 561f8c07989e29be1a9cc93ec9b4c4f1a645c5a9
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 10:39:56 2014 +0200

    Cleanup grunt tasks

    * remove jshint
    * add build task

commit 81fd3c535a8c305c42e50ff82f3a0f12a053ccf2
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 10:39:24 2014 +0200

    * change path to dist build in karma conf files

commit 688f6030f2ecb5a6d6ed00eddc442053ce717140
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 10:38:42 2014 +0200

    * change path to dist build in example

commit 34b25b6ea0e61111ffdffbba164d6006f20a1806
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 10:24:03 2014 +0200

    * use native Array.forEach to loop over params

commit 5a2f5e235eb88c38661b126df48a666e08bee560
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 10:23:36 2014 +0200

    * remove unused variable in Gruntfile build script

commit d8078c369ac78a98129f84589c1da4b09406919a
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 10:18:22 2014 +0200

    * clean up Gruntfile
    * remove requirejs task
    * remove requirejs related options
    * adjust templates path to use new buildFiles folder
    * output of generated file is now dist
    * remove console.log statement

commit a0d42975c5bc909acfd12e2335c277b02af0122c
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 10:17:00 2014 +0200

    * rename templates folder in buildFiles

commit 967f0a20e75c0a8e59e9b0fc4e92cd523d0cc1df
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 10:13:44 2014 +0200

    Remove old build files, generate script and move templates

commit bdd93dff57337e507f87ab70b39e27fdde0ba5ee
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 10:12:27 2014 +0200

    * delete old (obsolete) files

commit c82766768382979431073a5d24ad6ba212eb9e6a
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 10:09:30 2014 +0200

    * update routes json with lastest from https://github.com/mikedeboer/node-github

commit e8ac4e147c752b19456f7466c946303de8e6a439
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 10:08:44 2014 +0200

    * add a define block to main require file

commit 0d8a5a21429c4364fa7ccb8aabb919a309c93bc5
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 10:08:01 2014 +0200

    * also generate specs in build task

commit 12da8c910c551163cb6d64d8454bb0f414226880
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 10:07:45 2014 +0200

    * add spec templates

commit 5b60b7d92751f611da7dbb303c02be16d12e1918
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 01:54:24 2014 +0200

    * set coverage dir for karma coveralls tag manually

commit f7ee29ae66b83fef8a9841a29aa172e4c24494ac
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 01:47:06 2014 +0200

    * remove check of instance of HttpError

commit 91eb17506b807e41f3f6fe7b1e0f1df2ffb28ad6
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 01:36:06 2014 +0200

    * remove check of instance of HttpError in gists-spec

commit f6aa9349eaa2e7f505840850c433407f56f984ac
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 01:30:55 2014 +0200

    * set karma jasmine version to 0.2.2

commit ae3c86416f06e28ca814800daf5cf239895b2385
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 01:20:32 2014 +0200

    Fix tests

    * add back incidentally removed karma phantomjs launcher
    * set included to true in karma config for test files

commit a9d0d3442d68de42c5873bdd760ad36f0786d67f
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 01:14:48 2014 +0200

    Rename main github file from index.js to github.js

commit 1b1fe742504dfe0632d2369b09985425924878c8
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 01:12:55 2014 +0200

    * add full github file which works without require

commit bafe737e1fa1fcf7875926d97fd8363624ff85b4
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 01:12:22 2014 +0200

    Update simple example files

commit da889910c4a927f65d01f4c6b467e61581807caa
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 01:11:21 2014 +0200

    Fix tests

    * adjust karma config file to run without require
    * adjust tests to run without require

commit f2a1d183ad120dddb7da35755062657ce45ef1c2
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 01:10:35 2014 +0200

    * update node modules
    * remove obsolete node module
    * add grunt-contrib-clean module

commit eda2ef7b7afe8154fded76cbb53014e561506fe5
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 01:09:58 2014 +0200

    * cleanup Gruntfile

commit b73121cfe05c8956ac2c02bfb59ea5c98fc21c69
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 01:09:39 2014 +0200

    * remove obsolete dist file

commit b81903dc3b2b05c80240c2b3f7c675f49653d0dc
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 00:56:51 2014 +0200

    * delete obsolete test files

commit e8b4ad7a5e7fc286fa9bf58a85f1dd0511faa7b7
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 23 00:05:37 2014 +0200

    * update node modules

commit 61665488ce0fc7ce24d154646390e784511c4b0c
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 22 23:47:12 2014 +0200

    * fix falsy section declaration

commit 74fe9a6b28230c0d3617572d358ac605c67284c0
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 22 23:20:21 2014 +0200

    * add grunt to generate code instead of single node file

commit 725827154f679b8031de440eda75e59b1f0635d9
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 22 23:19:58 2014 +0200

    * add templates for code generation without requirejs

commit 65512acaa7407c22645866f46174a71ff1cd24d7
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 22 23:19:33 2014 +0200

    * remove obsolete api files

commit a7433b82eb2ad5643195e00bda72f416d69e34d9
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 22 21:35:37 2014 +0200

    * add minified/optimized dist file

commit c3963ad112a5d547f391d6e55eb05851f0c29434
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 22 21:33:35 2014 +0200

    * add generated API files

commit eb8839f75a45ad0f76b93da121b2c3feebf67627
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 22 21:33:13 2014 +0200

    * fix search spec

commit f87cb619970d6494b814d8e4a4e3a2a66eccc1af
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 22 21:33:03 2014 +0200

    * fix gist tests because of changed github API response

commit f6926bea218a2cbd202af8a71f731ef6b0a1e053
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 22 21:31:00 2014 +0200

    * adjust paths in test config files

commit 0db63418845b3f47067f6185d937ce28aa77da9f
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 22 21:29:59 2014 +0200

    * adjust paths in generate script

commit c83c11196e704fe3aaf341e465aa4dc372ef576d
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 22 21:29:38 2014 +0200

    * adjust paths for building dist
    * use uglify2 to optimize
    * comment out clean task for now

commit 499645de0573e88037af8ffd966ecbeb67fab264
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 22 21:28:17 2014 +0200

    Move templates and static files into requirejs subfolder