add get user purchase api endpoint
add purchased flag in game/detail request, fixes issue #144
refactoring
fix problems and clear up code
fix error
only allow the user to view purchase list
better error handling, fixes #144 and also resolves #128
Merge pull request #145 from cvan/game-play-api

Add user purchase endpoint and modify game detail endpoint